Skip to content

chore: clear SonarCloud code smells (78 → 0)#42

Merged
dfa1 merged 1 commit into
mainfrom
chore/sonar-cleanup
Jun 28, 2026
Merged

chore: clear SonarCloud code smells (78 → 0)#42
dfa1 merged 1 commit into
mainfrom
chore/sonar-cleanup

Conversation

@dfa1

@dfa1 dfa1 commented Jun 27, 2026

Copy link
Copy Markdown
Owner

All 78 open SonarCloud issues were CODE_SMELL (0 bugs, 0 vulnerabilities; quality gate already green). This fixes the genuine ones and suppresses the rules that conflict with mandatory FFM idiom or an enforced project convention.

Fixed

  • S6213 (28) — rename variables matching restricted identifiers
  • S5838 (6) — AssertJ hasSize / hasSizeLessThan
  • S5853 (3) — chain assertions on the same actual (left the side-effecting InputStream.read() triple alone — chaining would collapse three distinct reads)
  • S1066 (1) — merge nested if in ZstdInputStream.produce() (behavior-identical: if(a){if(b)}if(a&&b))
  • S7467 (1) — unnamed pattern for an unused binding

Suppressed (with justification)

  • S7474 (34) — pom-level ignore. The rule wants {@link}/HTML javadoc, which the project forbids (mandates /// Markdown + [Class#method] refs, checkstyle-enforced).
  • S112 (3) — @SuppressWarnings on the invokeExact wrapper interfaces (declared throws Throwable)
  • S1181 (1) — catching Throwable is mandatory: MethodHandle.invokeExact throws it
  • S3776 (1) — produce() complexity is inherent to the decode/EOF loop and is tested

No production behavior change. validate + test green. Reviewed (produce() equivalence confirmed; suppressions verified 1:1 against reported issues).

🤖 Generated with Claude Code

All open issues were CODE_SMELL (0 bugs, 0 vulns; gate already green). Fix
the genuine ones and suppress the rules that conflict with mandatory FFM
idiom or an enforced project convention:

Fixed:
- S6213 (28) rename variables matching restricted identifiers
- S5838 (6)  use AssertJ hasSize/hasSizeLessThan
- S5853 (3)  chain assertions on the same actual (left the side-effecting
             InputStream.read() triple alone — chaining would change reads)
- S1066 (1)  merge nested if in ZstdInputStream.produce() (behavior-identical)
- S7467 (1)  unnamed pattern for an unused binding

Suppressed (with justification):
- S7474 (34) pom-level ignore: the rule wants {@link}/HTML javadoc, which the
             project forbids (mandates `///` Markdown + [Class#method] refs,
             checkstyle-enforced)
- S112  (3)  @SuppressWarnings on the invokeExact wrapper interfaces
- S1181 (1)  catching Throwable is mandatory: MethodHandle.invokeExact throws it
- S3776 (1)  produce() complexity is inherent to the decode/EOF loop and tested

No production behavior change. validate + test green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@dfa1 dfa1 merged commit bdc7758 into main Jun 28, 2026
1 check passed
@dfa1 dfa1 deleted the chore/sonar-cleanup branch June 28, 2026 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant